package com.jianyun.jyzs.qrcode;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;


/**
 * Created by AMing on 17/5/5.
 * Company RongCloud
 */
public class QRCodeGenerateActivity extends AppCompatActivity {

    private String name;
    private String targetId;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.rce_activity_qrcode_generate);
//        ImageView qrImage = (ImageView) findViewById(com.jianyun.rongcloud.R.id.rce_qr_code);
//        TextView qrName = (TextView) findViewById(com.jianyun.rongcloud.R.id.rce_qr_name);
//        String type = getIntent().getStringExtra(Const.QR_CODE_TYPE);
//        if (String.valueOf(QRCodeManager.QRCodeType.GROUP).equals(type)) {
//            name = getIntent().getStringExtra(Const.GROUP_NAME);
//            targetId = getIntent().getStringExtra(Const.TARGET_ID);
//        } else if (String.valueOf(QRCodeManager.QRCodeType.USER).equals(type)) {
//            //TODO USER
//        }
//        qrName.setText(name);
//        qrImage.setImageBitmap(QRCodeManager.generateImage(QRCodeManager.PREFIX_GROUP + targetId + "@" + name, qrImage.getLayoutParams().width, qrImage.getLayoutParams().height, null));

    }

//    @Override
//    public void onCreateActionBar(ActionBar actionBar) {
//        super.onCreateActionBar(actionBar);
//        actionBar.setTitle(getResources().getString(com.jianyun.rongcloud.R.string.rce_qrcode));
//    }


}
